package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.WorkStepParamMapper;
import com.ruoyi.business.domain.WorkStepParam;
import com.ruoyi.business.service.IWorkStepParamService;

/**
 * 工步参数子Service业务层处理
 * 
 * @author DL
 * @date 2025-06-24
 */
@Service
public class WorkStepParamServiceImpl implements IWorkStepParamService 
{
    @Autowired
    private WorkStepParamMapper workStepParamMapper;

    /**
     * 查询工步参数子
     * 
     * @param id 工步参数子主键
     * @return 工步参数子
     */
    @Override
    public WorkStepParam selectWorkStepParamById(Long id)
    {
        return workStepParamMapper.selectWorkStepParamById(id);
    }

    /**
     * 查询工步参数子列表
     * 
     * @param workStepParam 工步参数子
     * @return 工步参数子
     */
    @Override
    public List<WorkStepParam> selectWorkStepParamList(WorkStepParam workStepParam)
    {
        return workStepParamMapper.selectWorkStepParamList(workStepParam);
    }

    /**
     * 新增工步参数子
     * 
     * @param workStepParam 工步参数子
     * @return 结果
     */
    @Override
    public int insertWorkStepParam(WorkStepParam workStepParam)
    {
        return workStepParamMapper.insertWorkStepParam(workStepParam);
    }

    /**
     * 修改工步参数子
     * 
     * @param workStepParam 工步参数子
     * @return 结果
     */
    @Override
    public int updateWorkStepParam(WorkStepParam workStepParam)
    {
        return workStepParamMapper.updateWorkStepParam(workStepParam);
    }

    /**
     * 批量删除工步参数子
     * 
     * @param ids 需要删除的工步参数子主键
     * @return 结果
     */
    @Override
    public int deleteWorkStepParamByIds(Long[] ids)
    {
        return workStepParamMapper.deleteWorkStepParamByIds(ids);
    }

    /**
     * 删除工步参数子信息
     * 
     * @param id 工步参数子主键
     * @return 结果
     */
    @Override
    public int deleteWorkStepParamById(Long id)
    {
        return workStepParamMapper.deleteWorkStepParamById(id);
    }
}
